const util = require("../../utils/util.js")
const app = getApp()
Page({

  data: {
    phoneHeight:app.globalData.phoneHeight,

  },

  onUnload(){
    console.log("123");
    wx.showModal({
      title: '删除图片',
      content: '确定要删除该图片？',
      showCancel: true,//是否显示取消按钮
      cancelText: "否",//默认是“取消”
      cancelColor: 'skyblue',//取消文字的颜色
      confirmText: "是",//默认是“确定”
      confirmColor: 'skyblue',//确定文字的颜色
      success: function (res) {
        if (res.cancel) {
          //点击取消,默认隐藏弹框
        } else {

        }
      },
      fail: function (res) { },//接口调用失败的回调函数
      complete: function (res) { },//接口调用结束的回调函数（调用成功、失败都会执行）
    });
  },
  enter_vote: function () {
    wx.navigateTo({
      url: "/package2/pages/vote/index"
    })
  },


  /* 插件   */
  jump_audio: function() {
    wx.navigateTo({
      url: "/package1/pages/audio/index"
    })
  },
  jump_select: function() {
    wx.navigateTo({
      url: "/package1/pages/select/index"
    })
  },
  jump_star: function () {
    wx.navigateTo({
      url: "/package1/pages/star/index"
    })
  },
  jump_allcheckbox: function () {
    wx.navigateTo({
      url: "/package1/pages/allcheckbox/index"
    })
  },
  jump_scroll: function () {
    wx.navigateTo({
      url: "/package1/pages/scroll/index"
    })
  },
  jump_counter: function () {
    wx.navigateTo({
      url: "/package1/pages/counter/index"
    })
  },
  jump_swiper: function () {
    wx.navigateTo({
      url: "/package1/pages/swiper/index"
    })
  },
  /* 页面   */
  jump_elm: function () {
    wx.navigateTo({
      url: "/package2/pages/anchor/index"
    })
  },
  jump_H5: function () {
    wx.navigateTo({
      url: "/package2/pages/h5/index"
    })
  },
  jump_test: function () {
    wx.navigateTo({
      url: "/package2/pages/test/index"
    })
  },
  jump_countTimer: function () {
    wx.navigateTo({
      url: "/package2/pages/countTimer/index"
    })
  },
  jump_earthOneMinute:function(){
    wx.navigateTo({
      url: "/packageEarthOneMinute/pages/index/index"
    })
  }

})
